Hello  <g:cookie name="mycookie" />
<g:if test="${cookie(name:'mycookie')}">
    Hello
</g:if>